package com.villaday.idf.model;

import java.util.List;

/**
 * Created by tudou on 2018/9/4.
 */

public class MaterialRecommendEntity {


    /**
     * body : {"dataList":[{"adWord":"莫干山竹影山庄4房独栋别墅","city":"惠州","country":"中国","createTime":"2018-08-11 15:59:18","favorite":false,"house":{"brokerAge":0,"id":"dzWKoGVWk9"},"houseId":"dzWKoGVWk9","id":"5ME32B3oGV","materialType":0,"merchant":{"headImageURL":"http://betares.villago.cn/images/wxa/18/merchant/20180829092335.png?x-oss-process=image/resize,m_mfit,w_200,h_200,limit_0/quality,q_90","nickName":"爱订房精选"},"picList":["http://betares.villago.cn/images/material/1/pic/153397437930249.jpg?x-oss-process=image/resize,m_mfit,w_880,h_872,limit_0/sharpen,100"],"presellId":"3ZmNO9PaEa","province":"广东","siteId":1,"tags":[],"title":"莫干山竹影山庄4房独栋别墅"},{"adWord":"have you ever been going to New York?\nemmm, i want to go there someday","city":"惠州","country":"中国","createTime":"2018-08-11 17:11:07","favorite":false,"house":{"brokerAge":0,"id":"1LWa2O45Je"},"houseId":"1LWa2O45Je","id":"wKvk7vzrqG","materialType":0,"merchant":{"headImageURL":"http://betares.villago.cn/images/wxa/18/merchant/20180829092335.png?x-oss-process=image/resize,m_mfit,w_200,h_200,limit_0/quality,q_90","nickName":"爱订房精选"},"picList":["http://betares.villago.cn/images/material/3/pic/153431793710215.jpg?x-oss-process=image/resize,m_mfit,w_880,h_872,limit_0/sharpen,100","http://betares.villago.cn/images/material/3/pic/153431793708494.jpg?x-oss-process=image/resize,m_mfit,w_880,h_872,limit_0/sharpen,100"],"presellId":"bV5KweEaog","province":"广东","siteId":1,"tags":[],"title":"go hiking"},{"adWord":"刚刚好","city":"芭提雅","country":"泰国","createTime":"2018-08-13 16:46:54","favorite":false,"house":{"brokerAge":0,"id":"MLm0QOOyw6"},"houseId":"MLm0QOOyw6","id":"dKvJKv3XDZ","materialType":0,"merchant":{"headImageURL":"http://betares.villago.cn/images/wxa/18/merchant/20180829092335.png?x-oss-process=image/resize,m_mfit,w_200,h_200,limit_0/quality,q_90","nickName":"爱订房精选"},"picList":["http://betares.villago.cn/images/material/5/pic/153432123389868.jpg?x-oss-process=image/resize,m_mfit,w_880,h_872,limit_0/sharpen,100","http://betares.villago.cn/images/material/5/pic/153432123410796.png?x-oss-process=image/resize,m_mfit,w_880,h_872,limit_0/sharpen,100","http://betares.villago.cn/images/material/5/pic/153432123425397.png?x-oss-process=image/resize,m_mfit,w_880,h_872,limit_0/sharpen,100","http://betares.villago.cn/images/material/5/pic/153432123440433.png?x-oss-process=image/resize,m_mfit,w_880,h_872,limit_0/sharpen,100","http://betares.villago.cn/images/material/5/pic/153432124195459.png?x-oss-process=image/resize,m_mfit,w_880,h_872,limit_0/sharpen,100","http://betares.villago.cn/images/material/5/pic/153432123604933.png?x-oss-process=image/resize,m_mfit,w_880,h_872,limit_0/sharpen,100","http://betares.villago.cn/images/material/5/pic/153432124577817.png?x-oss-process=image/resize,m_mfit,w_880,h_872,limit_0/sharpen,100","http://betares.villago.cn/images/material/5/pic/153432124740435.png?x-oss-process=image/resize,m_mfit,w_880,h_872,limit_0/sharpen,100"],"presellId":"bV5KweEaog","province":"芭提雅","siteId":3,"tags":[],"title":"自由"},{"adWord":"萨哈拉瑟哟","city":"深圳","country":"中国","createTime":"2018-08-18 20:52:28","favorite":false,"house":{"brokerAge":0,"id":"1wyp7z7mJe"},"houseId":"1wyp7z7mJe","id":"nrLzv2z9yx","materialType":0,"merchant":{"headImageURL":"http://betares.villago.cn/images/wxa/18/merchant/20180829092335.png?x-oss-process=image/resize,m_mfit,w_200,h_200,limit_0/quality,q_90","nickName":"爱订房精选"},"picList":[],"presellId":"WLEjeAYRmR","province":"广东","siteId":1,"tags":[],"title":"萨哈拉瑟哟"}],"endIndex":20,"first":0,"hasNext":false,"hasPrev":false,"needData":true,"needTotalCount":true,"nextPage":1,"orderBySetted":false,"pageNo":1,"pageSize":20,"prevPage":1,"startIndex":0,"totalCount":4,"totalPages":1}
     * code : 200
     * msg : success
     */

    private BodyEntity body;
    private String code;
    private String msg;

    public BodyEntity getBody() {
        return body;
    }

    public void setBody(BodyEntity body) {
        this.body = body;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public static class BodyEntity {
        /**
         * dataList : [{"adWord":"莫干山竹影山庄4房独栋别墅","city":"惠州","country":"中国","createTime":"2018-08-11 15:59:18","favorite":false,"house":{"brokerAge":0,"id":"dzWKoGVWk9"},"houseId":"dzWKoGVWk9","id":"5ME32B3oGV","materialType":0,"merchant":{"headImageURL":"http://betares.villago.cn/images/wxa/18/merchant/20180829092335.png?x-oss-process=image/resize,m_mfit,w_200,h_200,limit_0/quality,q_90","nickName":"爱订房精选"},"picList":["http://betares.villago.cn/images/material/1/pic/153397437930249.jpg?x-oss-process=image/resize,m_mfit,w_880,h_872,limit_0/sharpen,100"],"presellId":"3ZmNO9PaEa","province":"广东","siteId":1,"tags":[],"title":"莫干山竹影山庄4房独栋别墅"},{"adWord":"have you ever been going to New York?\nemmm, i want to go there someday","city":"惠州","country":"中国","createTime":"2018-08-11 17:11:07","favorite":false,"house":{"brokerAge":0,"id":"1LWa2O45Je"},"houseId":"1LWa2O45Je","id":"wKvk7vzrqG","materialType":0,"merchant":{"headImageURL":"http://betares.villago.cn/images/wxa/18/merchant/20180829092335.png?x-oss-process=image/resize,m_mfit,w_200,h_200,limit_0/quality,q_90","nickName":"爱订房精选"},"picList":["http://betares.villago.cn/images/material/3/pic/153431793710215.jpg?x-oss-process=image/resize,m_mfit,w_880,h_872,limit_0/sharpen,100","http://betares.villago.cn/images/material/3/pic/153431793708494.jpg?x-oss-process=image/resize,m_mfit,w_880,h_872,limit_0/sharpen,100"],"presellId":"bV5KweEaog","province":"广东","siteId":1,"tags":[],"title":"go hiking"},{"adWord":"刚刚好","city":"芭提雅","country":"泰国","createTime":"2018-08-13 16:46:54","favorite":false,"house":{"brokerAge":0,"id":"MLm0QOOyw6"},"houseId":"MLm0QOOyw6","id":"dKvJKv3XDZ","materialType":0,"merchant":{"headImageURL":"http://betares.villago.cn/images/wxa/18/merchant/20180829092335.png?x-oss-process=image/resize,m_mfit,w_200,h_200,limit_0/quality,q_90","nickName":"爱订房精选"},"picList":["http://betares.villago.cn/images/material/5/pic/153432123389868.jpg?x-oss-process=image/resize,m_mfit,w_880,h_872,limit_0/sharpen,100","http://betares.villago.cn/images/material/5/pic/153432123410796.png?x-oss-process=image/resize,m_mfit,w_880,h_872,limit_0/sharpen,100","http://betares.villago.cn/images/material/5/pic/153432123425397.png?x-oss-process=image/resize,m_mfit,w_880,h_872,limit_0/sharpen,100","http://betares.villago.cn/images/material/5/pic/153432123440433.png?x-oss-process=image/resize,m_mfit,w_880,h_872,limit_0/sharpen,100","http://betares.villago.cn/images/material/5/pic/153432124195459.png?x-oss-process=image/resize,m_mfit,w_880,h_872,limit_0/sharpen,100","http://betares.villago.cn/images/material/5/pic/153432123604933.png?x-oss-process=image/resize,m_mfit,w_880,h_872,limit_0/sharpen,100","http://betares.villago.cn/images/material/5/pic/153432124577817.png?x-oss-process=image/resize,m_mfit,w_880,h_872,limit_0/sharpen,100","http://betares.villago.cn/images/material/5/pic/153432124740435.png?x-oss-process=image/resize,m_mfit,w_880,h_872,limit_0/sharpen,100"],"presellId":"bV5KweEaog","province":"芭提雅","siteId":3,"tags":[],"title":"自由"},{"adWord":"萨哈拉瑟哟","city":"深圳","country":"中国","createTime":"2018-08-18 20:52:28","favorite":false,"house":{"brokerAge":0,"id":"1wyp7z7mJe"},"houseId":"1wyp7z7mJe","id":"nrLzv2z9yx","materialType":0,"merchant":{"headImageURL":"http://betares.villago.cn/images/wxa/18/merchant/20180829092335.png?x-oss-process=image/resize,m_mfit,w_200,h_200,limit_0/quality,q_90","nickName":"爱订房精选"},"picList":[],"presellId":"WLEjeAYRmR","province":"广东","siteId":1,"tags":[],"title":"萨哈拉瑟哟"}]
         * endIndex : 20
         * first : 0
         * hasNext : false
         * hasPrev : false
         * needData : true
         * needTotalCount : true
         * nextPage : 1
         * orderBySetted : false
         * pageNo : 1
         * pageSize : 20
         * prevPage : 1
         * startIndex : 0
         * totalCount : 4
         * totalPages : 1
         */

        private int endIndex;
        private int first;
        private boolean hasNext;
        private boolean hasPrev;
        private boolean needData;
        private boolean needTotalCount;
        private int nextPage;
        private boolean orderBySetted;
        private int pageNo;
        private int pageSize;
        private int prevPage;
        private int startIndex;
        private int totalCount;
        private int totalPages;
        private List<DataListEntity> dataList;


        public int getEndIndex() {
            return endIndex;
        }

        public void setEndIndex(int endIndex) {
            this.endIndex = endIndex;
        }

        public int getFirst() {
            return first;
        }

        public void setFirst(int first) {
            this.first = first;
        }

        public boolean isHasNext() {
            return hasNext;
        }

        public void setHasNext(boolean hasNext) {
            this.hasNext = hasNext;
        }

        public boolean isHasPrev() {
            return hasPrev;
        }

        public void setHasPrev(boolean hasPrev) {
            this.hasPrev = hasPrev;
        }

        public boolean isNeedData() {
            return needData;
        }

        public void setNeedData(boolean needData) {
            this.needData = needData;
        }

        public boolean isNeedTotalCount() {
            return needTotalCount;
        }

        public void setNeedTotalCount(boolean needTotalCount) {
            this.needTotalCount = needTotalCount;
        }

        public int getNextPage() {
            return nextPage;
        }

        public void setNextPage(int nextPage) {
            this.nextPage = nextPage;
        }

        public boolean isOrderBySetted() {
            return orderBySetted;
        }

        public void setOrderBySetted(boolean orderBySetted) {
            this.orderBySetted = orderBySetted;
        }

        public int getPageNo() {
            return pageNo;
        }

        public void setPageNo(int pageNo) {
            this.pageNo = pageNo;
        }

        public int getPageSize() {
            return pageSize;
        }

        public void setPageSize(int pageSize) {
            this.pageSize = pageSize;
        }

        public int getPrevPage() {
            return prevPage;
        }

        public void setPrevPage(int prevPage) {
            this.prevPage = prevPage;
        }

        public int getStartIndex() {
            return startIndex;
        }

        public void setStartIndex(int startIndex) {
            this.startIndex = startIndex;
        }

        public int getTotalCount() {
            return totalCount;
        }

        public void setTotalCount(int totalCount) {
            this.totalCount = totalCount;
        }

        public int getTotalPages() {
            return totalPages;
        }

        public void setTotalPages(int totalPages) {
            this.totalPages = totalPages;
        }

        public List<DataListEntity> getDataList() {
            return dataList;
        }

        public void setDataList(List<DataListEntity> dataList) {
            this.dataList = dataList;
        }

        public static class DataListEntity {
            /**
             * adWord : 莫干山竹影山庄4房独栋别墅
             * city : 惠州
             * country : 中国
             * createTime : 2018-08-11 15:59:18
             * favorite : false
             * house : {"brokerAge":0,"id":"dzWKoGVWk9"}
             * houseId : dzWKoGVWk9
             * id : 5ME32B3oGV
             * materialType : 0
             * merchant : {"headImageURL":"http://betares.villago.cn/images/wxa/18/merchant/20180829092335.png?x-oss-process=image/resize,m_mfit,w_200,h_200,limit_0/quality,q_90","nickName":"爱订房精选"}
             * picList : ["http://betares.villago.cn/images/material/1/pic/153397437930249.jpg?x-oss-process=image/resize,m_mfit,w_880,h_872,limit_0/sharpen,100"]
             * presellId : 3ZmNO9PaEa
             * province : 广东
             * siteId : 1
             * tags : []
             * title : 莫干山竹影山庄4房独栋别墅
             */

            private String adWord;
            private String city;
            private String country;
            private String createTime;
            private boolean favorite;
            private HouseEntity house;
            private String houseId;
            private String id;
            private int materialType;
            private MerchantEntity merchant;
            private String presellId;
            private String province;
            private int siteId;
            private String title;
            private List<String> picList;
            private List<String> tags;
            private int myType;
            private int modelType;
            private boolean presellProduct;
            private String poster;


            private String villageId;//动态列表新增villageId字段,productType=3时,使用villageId生成海报和跳转页面, 默认为0 文档已更新
            private int productType;

            private int enablePoster;//1.动态列表 素材添加字段enablePoster(1:可以生成 0:无法生成),用来控制是否发送生成海报请求
            /*
            *  "enablePoster": "int,是否调用生成海报接口 0:不生成  1:生成",
                  "visitProduct": "int,是否有查看商品 0:无 1:有",
                  "saveMaterial": "int,是否有保存图文 0:无  1:有",
                  "forward": "int,是否有一键转发 0:无  1:有"


            * */
            private int visitProduct;
            private int saveMaterial;
            private int forward;

            private int replacePic;//      "replacePic": "integer,生成的海报是否替换图片(此图片指picList或poster,根据materialType的值替换0:picList 1:poster)替换picList时,从最后一张开始替换,有多张则替换多张",

           private List<ImageListEntity>  imageList;

            public List<ImageListEntity> getImageList() {
                return imageList;
            }

            public void setImageList(List<ImageListEntity> imageList) {
                this.imageList = imageList;
            }

            public static class ImageListEntity{
               private String number;
               private String imageUrl;
               private String adWord;

               public String getNumber() {
                   return number;
               }

               public void setNumber(String number) {
                   this.number = number;
               }

               public String getImageUrl() {
                   return imageUrl;
               }

               public void setImageUrl(String imageUrl) {
                   this.imageUrl = imageUrl;
               }

               public String getAdWord() {
                   return adWord;
               }

               public void setAdWord(String adWord) {
                   this.adWord = adWord;
               }
           }
            public int getReplacePic() {
                return replacePic;
            }

            public void setReplacePic(int replacePic) {
                this.replacePic = replacePic;
            }

            public String getVillageId() {
                return villageId;
            }

            public void setVillageId(String villageId) {
                this.villageId = villageId;
            }

            public int getEnablePoster() {
                return enablePoster;
            }

            public void setEnablePoster(int enablePoster) {
                this.enablePoster = enablePoster;
            }

            public int getVisitProduct() {
                return visitProduct;
            }

            public void setVisitProduct(int visitProduct) {
                this.visitProduct = visitProduct;
            }

            public int getSaveMaterial() {
                return saveMaterial;
            }

            public void setSaveMaterial(int saveMaterial) {
                this.saveMaterial = saveMaterial;
            }

            public int getForward() {
                return forward;
            }

            public void setForward(int forward) {
                this.forward = forward;
            }

            public int getProductType() {
                return productType;
            }

            public String getVillageid() {
                return villageId;
            }

            public void setVillageid(String villageid) {
                this.villageId = villageid;
            }

            public void setProductType(int productType) {
                this.productType = productType;
            }


            public String getPoster() {
                return poster;
            }

            public void setPoster(String poster) {
                this.poster = poster;
            }

            public boolean isPresellProduct() {
                return presellProduct;
            }

            public void setPresellProduct(boolean presellProduct) {
                this.presellProduct = presellProduct;
            }

            public int getModelType() {
                return modelType;
            }

            public void setModelType(int modelType) {
                this.modelType = modelType;
            }

            public DataListEntity(int myType) {
                this.myType = myType;
            }

            public int getMyType() {
                return myType;
            }

            public void setMyType(int myType) {
                this.myType = myType;
            }

            public String getAdWord() {
                return adWord;
            }

            public void setAdWord(String adWord) {
                this.adWord = adWord;
            }

            public String getCity() {
                return city;
            }

            public void setCity(String city) {
                this.city = city;
            }

            public String getCountry() {
                return country;
            }

            public void setCountry(String country) {
                this.country = country;
            }

            public String getCreateTime() {
                return createTime;
            }

            public void setCreateTime(String createTime) {
                this.createTime = createTime;
            }

            public boolean isFavorite() {
                return favorite;
            }

            public void setFavorite(boolean favorite) {
                this.favorite = favorite;
            }

            public HouseEntity getHouse() {
                return house;
            }

            public void setHouse(HouseEntity house) {
                this.house = house;
            }

            public String getHouseId() {
                return houseId;
            }

            public void setHouseId(String houseId) {
                this.houseId = houseId;
            }

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public int getMaterialType() {
                return materialType;
            }

            public void setMaterialType(int materialType) {
                this.materialType = materialType;
            }

            public MerchantEntity getMerchant() {
                return merchant;
            }

            public void setMerchant(MerchantEntity merchant) {
                this.merchant = merchant;
            }

            public String getPresellId() {
                return presellId;
            }

            public void setPresellId(String presellId) {
                this.presellId = presellId;
            }

            public String getProvince() {
                return province;
            }

            public void setProvince(String province) {
                this.province = province;
            }

            public int getSiteId() {
                return siteId;
            }

            public void setSiteId(int siteId) {
                this.siteId = siteId;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public List<String> getPicList() {
                return picList;
            }

            public void setPicList(List<String> picList) {
                this.picList = picList;
            }

            public List<String> getTags() {
                return tags;
            }

            public void setTags(List<String> tags) {
                this.tags = tags;
            }

            public static class HouseEntity {
                /**
                 * brokerAge : 0
                 * id : dzWKoGVWk9
                 */

                private int brokerAge;
                private String id;
                private String brokerAgeValue;

                public String getBrokerAgeValue() {
                    return brokerAgeValue;
                }

                public void setBrokerAgeValue(String brokerAgeValue) {
                    this.brokerAgeValue = brokerAgeValue;
                }

                public int getBrokerAge() {
                    return brokerAge;
                }

                public void setBrokerAge(int brokerAge) {
                    this.brokerAge = brokerAge;
                }

                public String getId() {
                    return id;
                }

                public void setId(String id) {
                    this.id = id;
                }
            }

            public static class MerchantEntity {
                /**
                 * headImageURL : http://betares.villago.cn/images/wxa/18/merchant/20180829092335.png?x-oss-process=image/resize,m_mfit,w_200,h_200,limit_0/quality,q_90
                 * nickName : 爱订房精选
                 */

                private String headImageURL;
                private String nickName;

                public String getHeadImageURL() {
                    return headImageURL;
                }

                public void setHeadImageURL(String headImageURL) {
                    this.headImageURL = headImageURL;
                }

                public String getNickName() {
                    return nickName;
                }

                public void setNickName(String nickName) {
                    this.nickName = nickName;
                }
            }
        }
    }
}
